package mark.tom.friend.view.holder;

import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.template.IViewHolder;
import com.alibaba.android.arouter.launcher.ARouter;
import com.chad.library.adapter.base.BaseViewHolder;

import mark.tom.friend.bean.vo.ConfigRecordVO;

public class RecordListViewHolder extends BaseViewHolder implements IViewHolder {

    @Autowired TextView recordTitleTextView;

    public RecordListViewHolder(View view) {
        super(view);
        bindView(view);
    }

    private void bindView(View itemView) {
        ARouter.getInstance().inject(this, itemView);
    }

    public void applyView(ConfigRecordVO recordVO) {
        recordTitleTextView.setText(recordVO.getTitle());
    }
}
